.class Lcom/htc/android/footprints/activity/DeleteFootprintsActivity$4;
.super Ljava/lang/Object;
.source "DeleteFootprintsActivity.java"

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->onCreateDialog(I)Landroid/app/Dialog;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;


# direct methods
.method constructor <init>(Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;)V
    .locals 0
    .parameter

    .prologue
    .line 268
    iput-object p1, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity$4;->this$0:Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
    .locals 2
    .parameter "dialog"
    .parameter "which"

    .prologue
    .line 269
    iget-object v1, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity$4;->this$0:Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;

    #getter for: Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mSelectedFootprints:Ljava/util/ArrayList;
    invoke-static {v1}, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->access$700(Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;)Ljava/util/ArrayList;

    move-result-object v1

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity$4;->this$0:Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;

    #getter for: Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mSelectedFootprints:Ljava/util/ArrayList;
    invoke-static {v1}, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->access$700(Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;)Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-lez v1, :cond_0

    .line 270
    iget-object v1, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity$4;->this$0:Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;

    #getter for: Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mSelectedFootprints:Ljava/util/ArrayList;
    invoke-static {v1}, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->access$700(Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;)Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    new-array v0, v1, [Lcom/htc/android/footprints/vo/Footprint;

    .line 271
    .local v0, data:[Lcom/htc/android/footprints/vo/Footprint;
    iget-object v1, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity$4;->this$0:Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;

    #getter for: Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mSelectedFootprints:Ljava/util/ArrayList;
    invoke-static {v1}, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->access$700(Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;)Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;

    .line 272
    iget-object v1, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity$4;->this$0:Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;

    #calls: Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->deleteFootprints([Lcom/htc/android/footprints/vo/Footprint;)V
    invoke-static {v1, v0}, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->access$800(Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;[Lcom/htc/android/footprints/vo/Footprint;)V

    .line 274
    .end local v0           #data:[Lcom/htc/android/footprints/vo/Footprint;
    :cond_0
    invoke-interface {p1}, Landroid/content/DialogInterface;->dismiss()V

    .line 275
    iget-object v1, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity$4;->this$0:Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;

    invoke-virtual {v1}, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->finish()V

    .line 276
    return-void
.end method
